package com.wh.minihelp.user.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.wh.db.domain.IDBase;
import com.wh.web.util.lang.StringUtil;

/**
 * 帐号信息
 * 
 * @author washheart@163.com
 * 
 */
public class AccountInfo extends IDBase {
	/**
	 * 帐号名称
	 */
	private String name;
	/**
	 * 密码
	 */
	private String pwd;
	/**
	 * 创建时间
	 */
	private Date createDate;
	/**
	 * 备注
	 */
	private String remark;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getRemark() {
		return remark;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Map<String, Object> toMap() {
		Map<String, Object> m = new HashMap<String, Object>();
		m.put("pwd", pwd);
		m.put("remark", remark);
		m.put("createDate", StringUtil.format(createDate));
		m.put("id", id);
		m.put("name", name);
		return m;
	}
}